package com.wulijie.observer;

/**
 * @Author cui
 * @Data
 */
public class Client {
    public static void main(String[] args) {
        BaiduSite site = new BaiduSite();
        XinlangSite xinlangSite = new XinlangSite();

        SpecificObserver specificObserver = new SpecificObserver();
        specificObserver.register(site);
        specificObserver.register(xinlangSite);

        specificObserver.setData(1f, 3f);

    }
}
